package com.zhilei;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

import javax.annotation.ManagedBean;

/**
 * RabbitMQ 消费服务
 *
 * @author 志磊
 */
@Slf4j
@SpringBootApplication
@EnableDiscoveryClient   // TODO 开启服务注册跟发现
@ManagedBean("com.zhilei.mapper")
public class ResourceApplication {
    public static void main(String[] args) {
        SpringApplication.run(ResourceApplication.class, args);
        log.info("RabbitMQ微服务启动成功");
    }
}